import logo from './logo.svg';
import './App.css';
import { Button } from 'antd';

import React, { useState } from 'react';
import { ConfigProvider, Cascader } from 'antd';
import { CheckOutlined } from '@ant-design/icons';

function App(){
  const [value,setValue] = useState(true);
  const toggle = ()=> setValue(!value);
  return(
    <div>
      { value && <div> this is div </div>}
      <Button onClick={toggle}>toggle</Button>
    </div>
  )
}

export default  App;